package com.brtbeacon.my.springboot.service;

import com.brtbeacon.my.springboot.domain.Test;
import com.brtbeacon.my.springboot.mapper.TestMapper;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 */
@Service(value = "testService")
@Transactional
public class TestService implements ITestService {

	private Log log = LogFactory.getLog(getClass());

	@Autowired
	private TestMapper testMapper;

	public List<Test> queryAll(){
		return this.testMapper.selectAll();
	}

	public List<Test> query(){
		return this.testMapper.selectAll();
	}
	
}
